import type {Todo} from "@/Types/Todo";
export function saveData(val:Todo[]) {
    localStorage.setItem('data',JSON.stringify(val))
}

export function getData() {
    return JSON.parse(localStorage.getItem('data') || '[]')
}
